//package cn.wanda.bi.sunshine.platform.server.controller.authorize;
//
//import cn.wanda.bi.sunshine.platform.server.controller.request.AuthorizeAdminRequest;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.MediaType;
//import org.springframework.web.bind.annotation.*;
//
//import cn.wanda.bi.sunshine.platform.server.aspect.Logging;
//import cn.wanda.bi.sunshine.platform.server.controller.response.AdminLoginResponse;
//import cn.wanda.bi.sunshine.platform.server.controller.response.MemberLoginResponse;
//import cn.wanda.bi.sunshine.platform.server.controller.response.common.SimpleResponse;
//import cn.wanda.bi.sunshine.platform.server.service.authorize.AuthService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//
///**
// * Created by wangfupeng1
// */
//@Api(description = "管理员绑定认证")
////@RestController
////@RequestMapping(value = "/v1/admin", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
//public class AuthorizeAdminController implements Logging {
//
//    public static final Logger logger = LoggerFactory.getLogger(AuthorizeAdminController.class);
//
//    @Autowired
//    private AuthService authService;
//
//    @ApiOperation("微信B端管理员登陆")
////     @RequestMapping(value = "/login", method = RequestMethod.POST)
//    SimpleResponse<AdminLoginResponse> login(
//    		@ApiParam(value = "第三方用户代码") @RequestParam(value = "code") String code,
//            @ApiParam(value = "第三方appid") @RequestParam(value = "appid") String appid,
//            @ApiParam(value = "第三方类型，WECHAT,QQ,TAOBAO") @RequestParam(value = "type",defaultValue="WECHAT") String type
//            ) {
//        return authService.adminLogin(appid, code,type);
//    }
//
//    @ApiOperation("微信B端绑定管理员账号")
////     @RequestMapping(value = "/bind", method = RequestMethod.POST)
//    SimpleResponse<MemberLoginResponse> bind(@RequestBody AuthorizeAdminRequest authorizeAdminRequest) {
//        return authService.adminBind(authorizeAdminRequest.getAppid(), authorizeAdminRequest.getCode()
//                , authorizeAdminRequest.getUsername(), authorizeAdminRequest.getPassword(), authorizeAdminRequest.getType());
//    }
//    
//}
